import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by MtRider on 2021/10/7 20:29
 */
public class FindHacker {
    public static void main(String[] args) {
        String s = readFileContent("C:\\Users\\mystory\\Desktop\\log.txt");
        List<String> list = new ArrayList<>();
        Map<String, Object> hashMap = new HashMap<>();
        String[] split = s.split(",");
        
        System.out.println(list);
    }
    public static String readFileContent(String fileName){
        File file = new File(fileName);
        BufferedReader reader = null;
        StringBuffer sbf = new StringBuffer();
        try {
            reader = new BufferedReader(new FileReader(file));
            String tempStr;
            while ((tempStr = reader.readLine()) != null) {
                sbf.append(tempStr+"\n");
            }
            reader.close();
            return sbf.toString();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (IOException e1) {
                    e1.printStackTrace();
                }
            }
        }
        return sbf.toString();
    }
}

